import axios from "axios";

axios.defaults.baseURL = "http://localhost:3001";

const List = (params={})=>{
    return axios.get('/lzh/getlist',{params})
}
const Cate = ()=>{
    return axios.get('/lzh/getcate')
}

const Lecturer = ()=>{
    return axios.get('/lzh/getlecturer')
}
const Update = (params={})=>{
    return axios.post('/lzh/update',params)
}
const DeleteOne = (params={})=>{
    return axios.post('/lzh/deleteone',params)
}
const DeleteMany = (params={})=>{
    return axios.post('/lzh/deletemany',params)
}
const Topic = (params={})=>{
    return axios.get('/lzh/gettopic',{params})
}
const RadioCount = (params={})=>{
    return axios.post('/lzh/getradiocount',{...params})
}
const OptionCount = (params={})=>{
    return axios.post('/lzh/getoptionscount',{...params})
}
const JudgmentCount = (params={})=>{
    return axios.post('/lzh/getjudgmentcount',{...params})
}
const ShortCount = (params={})=>{
    return axios.post('/lzh/getshortcount',{...params})
}
const Clazz = (params={})=>{
    return axios.get('/lzh/getclazz',{params})
}
const AddExam = (params={})=>{
    return axios.post('/lzh/addexam',params)
}
const Paper = (params={})=>{
    return axios.get('/lzh/getpaper',{params})
}

export {
    List,
    Cate,
    Lecturer,
    Update,
    DeleteOne,
    DeleteMany,
    Topic,
    RadioCount,
    OptionCount,
    JudgmentCount,
    ShortCount,
    Clazz,
    AddExam,
    Paper
};
